@(movies: List[Movie])(implicit lang: Lang)

@main("The Cult Cinema Inc. Movie"){

	<section style="padding-top:60px">
				<div class="row">
					<div class="span12">
						<ul class="breadcrumb">
							<li><a href="@routes.Application.index(lang.code)">@Messages("home")(lang)</a> <span class="divider">/</span></li>
		        			<li class="active">@Messages("movie")(lang)</li>
		        		</ul>
					</div>
				</div>
				<div class="row">

					<div class="span3">
						<div class="well" style="padding: 8px 0;">
							<ul class="nav nav-list">
								<li class="nav-header">@Messages("movie.showing")(lang)</li>
								@movies.map { movie =>
									@if(movie.release_date.compareTo(new Date) <= 0){
										<li><a href="@routes.MovieManager.detail(movie.id)?lang=@lang.code">@movie.infos.get(0).name</a></li>
									}
								}
								<li class="divider"></li>
								<li class="nav-header">@Messages("movie.coming")(lang)</li>
								@movies.map { movie =>
									@if(movie.release_date.compareTo(new Date) > 0){
										<li><a href="@routes.MovieManager.detail(movie.id)?lang=@lang.code">@movie.infos.get(0).name</a></li>
									}
								}
							</ul>
						</div>
					</div>

					<div class="span9">
				        @movies.map { movie =>
				            @listItem(movie,movie.sessions,false)(lang)
						}
					</div>

				</div>
  			</section>

}(lang)
